﻿<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" xmlns:Microsoft_WebAnalytics_Behaviors="clr-namespace:Microsoft.WebAnalytics.Behaviors;assembly=Microsoft.WebAnalytics.Behaviors.WPF" x:Class="DemoWPF.Window1"
    Title="Window1" Height="300" Width="300">
    <Grid>
    	<i:Interaction.Behaviors>
    		<Microsoft_WebAnalytics_Behaviors:ConsoleAnalytics/>
    		<Microsoft_WebAnalytics_Behaviors:TrackApplication/>
    	</i:Interaction.Behaviors>
        
    	<Button HorizontalAlignment="Left" VerticalAlignment="Top" Width="75" Content="Button" Margin="8,8,0,0">
    		<i:Interaction.Triggers>
    			<i:EventTrigger EventName="Click">
    				<Microsoft_WebAnalytics_Behaviors:TrackAction/>
    			</i:EventTrigger>
    		</i:Interaction.Triggers>
    	</Button>
        
    </Grid>
</Window>
